import eq.timer as t;

print("timer examples 1:periodic and cancel");

function timer(e,f){
  print(e,f);
  print("timer test");
  if(f==5){
    print("timer test 5");
    t.cancel($a);
  }
}
a = t.periodic(timer,0,0,1);
print(a); 
print(a.isActive()); 